package classdemo;

public class Person {
	// 属性
	String name;
	int age;
	double height;
	char sex;

	public static void main(String[] args) {
		Person p = new Person();
		p.name = "张乃升";
		p.age = 23;
		p.height = 1.9;
		p.sex = '男';
		
		Person p2 = p;
		
		// 每个对象都是独立的，各人一份的属性
		Person p3 = new Person();
		p3.name = "田可馨";
	}
}
